﻿<%@ Page Title="" Culture="en-US" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true" CodeFile="WIN31_GL_DEPO_4A.aspx.cs" Inherits="WIN31_GL_DEPO_4A" %>

<%@ Register Assembly="vsm.CustomControl" Namespace="vsm.CustomControl" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Content/plugins/jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        window.SetValueGLAccount_GL = function (Value1, Value2, Value3, Value4) {
            if (Value4 == 'GL_ACCOUNT') {
                document.getElementById("<%= hidGL_ACCOUNT.ClientID %>").value = Value1;
                 document.getElementById("<%= txtGL_ACCOUNT.ClientID %>").value = Value2;
                 document.getElementById("<%= txtGL_ACCOUNT_NAME.ClientID %>").value = Value3;
             }
             else if (Value4 == 'GL_ADJ_INT_INC_PL') {
                 document.getElementById("<%= hidGL_ADJ_INT_INC_PL.ClientID %>").value = Value1;
                 document.getElementById("<%= txtGL_ADJ_INT_INC_PL.ClientID %>").value = Value2;
                 document.getElementById("<%= txtGL_ADJ_INT_INC_PL_NAME.ClientID %>").value = Value3;
             }
             else if (Value4 == 'GL_ADJ_FV_BS') {
                 document.getElementById("<%= hidGL_ADJ_FV_BS.ClientID %>").value = Value1;
                 document.getElementById("<%= txtGL_ADJ_FV_BS.ClientID %>").value = Value2;
                 document.getElementById("<%= txtGL_ADJ_FV_BS_NAME.ClientID %>").value = Value3;
             }
             else if (Value4 == 'GL_ADJ_INT_INC_ELCLS_PL') {
                 document.getElementById("<%= hidGL_ADJ_INT_INC_ELCLS_PL.ClientID %>").value = Value1;
                 document.getElementById("<%= txtGL_ADJ_INT_INC_ELCLS_PL.ClientID %>").value = Value2;
                 document.getElementById("<%= txtGL_ADJ_INT_INC_ELCLS_PL_NAME.ClientID %>").value = Value3;
             }
             else if (Value4 == 'GL_ADJ_CST_BS') {
                 document.getElementById("<%= hidGL_ADJ_CST_BS.ClientID %>").value = Value1;
                 document.getElementById("<%= txtGL_ADJ_CST_BS.ClientID %>").value = Value2;
                 document.getElementById("<%= txtGL_ADJ_CST_BS_NAME.ClientID %>").value = Value3;
             }
             else if (Value4 == 'GL_REV_CST_PL') {
                 document.getElementById("<%= hidGL_REV_CST_PL.ClientID %>").value = Value1;
                 document.getElementById("<%= txtGL_REV_CST_PL.ClientID %>").value = Value2;
                 document.getElementById("<%= txtGL_REV_CST_PL_NAME.ClientID %>").value = Value3;
             }

         }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container-custom">
        <div class="table_master">
            <div align="center" class="table_detail">
                <asp:PlaceHolder ID="form_control" runat="server">
                    <div class="rowinfo">
                        <div class="collabel_single_L">
                            <asp:Label ID="lblGL_Group" runat="server" Text="<%$Resources:ifrsField,GLGroup%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single_L">
                            <asp:TextBox ID="txtGL_Group" SkinID="L_ReadOnlyBox" runat="server"></asp:TextBox>&nbsp;
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single_L">
                            <asp:Label ID="lblGL_ACCOUNT" runat="server" Text="<%$Resources:ifrsField,GLAccount%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single_L">
                            <cc1:TextboxAutoComplete ID="txtGL_ACCOUNT" runat="server" SkinID="TextBoxWithNoColor"></cc1:TextboxAutoComplete>&nbsp;
                        <asp:Button ID="btnGL_ACCOUNT" runat="server" Text="..." CausesValidation="False" />&nbsp;
                        <asp:TextBox ID="txtGL_ACCOUNT_NAME" SkinID="L_ReadOnlyBox" runat="server"></asp:TextBox>&nbsp;
                         <span class="red">*</span>
                            <asp:RequiredFieldValidator ID="reqGLAccount" runat="server" ErrorMessage=""
                                ControlToValidate="btnGLAccountCode" Display="Dynamic"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div>
                        <div class="collabel_single_L">
                            <asp:Label ID="lblGL_ADJ_INT_INC_PL" runat="server" Text="<%$Resources:ifrsField,GL_ADJ_INT_INC_PL%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single_L">
                            <cc1:TextboxAutoComplete ID="txtGL_ADJ_INT_INC_PL" SkinID="TextBoxWithNoColor" runat="server"></cc1:TextboxAutoComplete>&nbsp;
                            <asp:Button ID="btnGL_ADJ_INT_INC_PL" runat="server" Text="..." CausesValidation="False" />&nbsp;
                            <asp:TextBox ID="txtGL_ADJ_INT_INC_PL_NAME" SkinID="L_ReadOnlyBox" runat="server"></asp:TextBox>&nbsp;
                        </div>
                    </div>
                    <div>
                        <div class="collabel_single_L">
                            <asp:Label ID="lblGL_ADJ_FV_BS" runat="server" Text="<%$Resources:ifrsField,GL_ADJ_FV_BS%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single_L">
                            <cc1:TextboxAutoComplete ID="txtGL_ADJ_FV_BS" SkinID="TextBoxWithNoColor" runat="server"></cc1:TextboxAutoComplete>&nbsp;
                            <asp:Button ID="btnGL_ADJ_FV_BS" runat="server" Text="..." CausesValidation="False" />&nbsp;
                            <asp:TextBox ID="txtGL_ADJ_FV_BS_NAME" SkinID="L_ReadOnlyBox" runat="server"></asp:TextBox>&nbsp;
                        </div>
                    </div>
                    <div>
                        <div class="collabel_single_L">
                            <asp:Label ID="lblGL_ADJ_INT_INC_ELCLS_PL" runat="server" Text="<%$Resources:ifrsField,GL_ADJ_INT_INC_ELCLS_PL%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single_L">
                            <cc1:TextboxAutoComplete ID="txtGL_ADJ_INT_INC_ELCLS_PL" SkinID="TextBoxWithNoColor" runat="server"></cc1:TextboxAutoComplete>&nbsp;
                            <asp:Button ID="btnGL_ADJ_INT_INC_ELCLS_PL" runat="server" Text="..." CausesValidation="False" />&nbsp;
                            <asp:TextBox ID="txtGL_ADJ_INT_INC_ELCLS_PL_NAME" SkinID="L_ReadOnlyBox" runat="server"></asp:TextBox>&nbsp;
                        </div>
                    </div>
                    <div>
                        <div class="collabel_single_L">
                            <asp:Label ID="lblGL_ADJ_CST_BS" runat="server" Text="<%$Resources:ifrsField,GL_ADJ_CST_BS%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single_L">
                            <cc1:TextboxAutoComplete ID="txtGL_ADJ_CST_BS" SkinID="TextBoxWithNoColor" runat="server"></cc1:TextboxAutoComplete>&nbsp;
                            <asp:Button ID="btnGL_ADJ_CST_BS" runat="server" Text="..." CausesValidation="False" />&nbsp;
                            <asp:TextBox ID="txtGL_ADJ_CST_BS_NAME" SkinID="L_ReadOnlyBox" runat="server"></asp:TextBox>&nbsp;
                        </div>
                    </div>
                    <div>
                        <div class="collabel_single_L">
                            <asp:Label ID="lblGL_REV_CST_PL" runat="server" Text="<%$Resources:ifrsField,GL_REV_CST_PL%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single_L">
                            <cc1:TextboxAutoComplete ID="txtGL_REV_CST_PL" SkinID="TextBoxWithNoColor" runat="server"></cc1:TextboxAutoComplete>&nbsp;
                            <asp:Button ID="btnGL_REV_CST_PL" runat="server" Text="..." CausesValidation="False" />&nbsp;
                            <asp:TextBox ID="txtGL_REV_CST_PL_NAME" SkinID="L_ReadOnlyBox" runat="server"></asp:TextBox>&nbsp;
                        </div>
                    </div>
                    <asp:HiddenField ID="hidGL_ACCOUNT" runat="server" />
                    <asp:HiddenField ID="hidGL_ADJ_INT_INC_PL" runat="server" />
                    <asp:HiddenField ID="hidGL_ADJ_FV_BS" runat="server" />
                    <asp:HiddenField ID="hidGL_ADJ_INT_INC_ELCLS_PL" runat="server" />
                    <asp:HiddenField ID="hidGL_ADJ_CST_BS" runat="server" />
                    <asp:HiddenField ID="hidGL_REV_CST_PL" runat="server" />
                </asp:PlaceHolder>
            </div>
            <div class="colbtn">
                <asp:Button ID="btnSAVE_NEW" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,SAVE_NEW%>" OnClick="btnSAVE_NEW_Click" />&nbsp;
                <asp:Button ID="btnSAVE" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,SAVE%>" OnClick="btnSAVE_Click" />&nbsp;
                <asp:Button ID="btnCLEAR" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,CLEAR%>" OnClick="btnCLEAR_Click" />&nbsp;
                <asp:Button ID="btnCANCEL" SkinID="NormalButton" runat="server" Text="<%$Resources:ifrsButton,CANCEL%>" OnClick="btnCANCEL_Click" />
            </div>
        </div>
    </div>

    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../Content/plugins/custom.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".datepicker").initDatepicker();
        });
    </script>
</asp:Content>